package org.shop.service.impl;

import java.util.Map;
import org.shop.dao.PraiseMapper;
import org.shop.entity.Praise;
import org.shop.service.PraiseService;
import org.shop.service.base.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class PraiseServiceImpl extends BaseServiceImpl<Praise, Long> implements PraiseService{

	@Autowired
	private PraiseMapper praiseMapper;
	
	public Praise getPraise(Map<String, Object> params){
		return praiseMapper.getPraise(params);
	}
	
	public int getPraiseCount(Map<String, Object> params){
		return praiseMapper.getPraiseCount(params);
	}
}